package org.jeecg.modules.job.ums.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.job.ums.entity.UmsChatHistory;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * @Description: 聊天记录
 * @Author: jeecg-boot
 * @Date:   2022-12-18
 * @Version: V1.0
 */
public interface IUmsChatHistoryService extends IService<UmsChatHistory> {

    /**
     * 批量添加
     * @param param
     */
    void addBatch(List<UmsChatHistory> param);

    /**
     * 添加
     * @param param
     */
    void add(UmsChatHistory param);

    /**
     * 分页查询
     * @param page
     * @param params 参数信息
     * @return
     */
    public IPage<Map<String, Object>> getChatList(Page<UmsChatHistory> page, UmsChatHistory params);

}
